package chenji.moreitemfunapi.textures.info;

import java.io.File;
import java.util.Properties;

import org.bukkit.Material;

public class ItemInfo extends TextureInfo {
	private static final String TYPE = "item";
	private String propertiesfilename;

	public ItemInfo(String pluginName, String itemName, Material itemtype ) {
		super(pluginName, itemName, itemtype);
		this.propertiesfilename = super.getPluginName() + super.getItemName();
	}

	@Override
	public boolean isDone() {
		return super.getAlreadUpdatedTextures().isEmpty();
	}

	@Override
	public boolean update(String name, File path) {
		super.auts.remove(name);
		return true;
	}

	@Override
	public Properties getProperties() {
		return super.getProperties(TYPE);
	}

	@Override
	public String getPropertiesFileName() {
		return this.propertiesfilename;
	}

	protected void setPropertiesFileName(String name) {
		this.propertiesfilename = name;

	}

}
